PATHMac OS 8 Developer Documentation > Operating System Services > Multiprocessing Services >

Adding Multitasking Capability to Applications Using Multiprocessing Services

   

UpTime

Obtains the time elapsed since machine startup.

AbsoluteTime UpTime (void);
function result
A value of type AbsoluteTime that indicates the time elapsed since the host computer was started up. Absolute time is a 64-bit monotonically increasing value. You should not make any assumptions about what units absolute time is based upon.
DISCUSSION

You can call this function from the task level, software interrupt level, or hardware interrupt level.

This function is identical to the UpTime function found in the Driver Services Library.

VERSION NOTES

Available in the Multiprocessing Services library with version 2.0.


© 1999 Apple Computer, Inc. – (Last Updated 07 May 99)